import { request } from "@/utils/request.js"

// 提现列表
export function withdrawalPage(data = {}) {
	return request({
		url: '/user/withdrawal/page',
		data
	})
}

// 提现申请
export function withdrawalWithdrawal(data = {}) {
	return request({
		url: '/user/withdrawal/withdrawal',
		data,
		showMsg: true
	})
}

// 设置paypal账号
export function userUpdateUserPaypal(data = {}) {
	return request({
		url: '/user/updateUserPaypal',
		data,
		showMsg: true
	})
}

// 获取paypal账号
export function userUserPaypal(data = {}) {
	return request({
		url: '/user/userPaypal',
		data
	})
}